package com.kdl.webconfig.vo;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author : wangxin
 * @date : 2019-01-03 20:45
 */
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class BasePageVO implements Serializable {

    @NotNull
    private Integer pageNo = 1;

    @NotNull
    @Max(500)
    private Integer pageSize = 20;

    /**
     * 起始位置
     */
    private Integer startIndex;

    private Integer currentPage;


    private Integer totalPages;


    private Integer totalSize;

}
